<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='从业人员-查看',jsPaths='/static/js/assessment/result.js')">
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
            <span class="layui-breadcrumb" lay-separator=">">
                <a th:href="@{/}">首页</a>
                 <a href="javascript:void(0)">人事管理</a>
                 <a href="/employee">从业人员</a>
                <a href="javascript:void(0)">查看</a>
            </span>
    </div>

    <!--主体内容区-->
    <div class="form-content">

        <div class="layui-row">
            <div class="layui-col-md6 layui-col-md-offset1">
                <h1 id="title" style="text-align: center;" >从业人员信息</h1>
                <table class="layui-table" style="width: 100%;">
                    <tr style="height: 50px;">
                        <td>姓名</td>
                        <td th:text="${employee.name }"></td>
                        <td>职位</td>
                        <td th:text="${employee.postName}"></td>
                        <td rowspan="2" style="width: 86px;padding:0;">
                            <img th:if="${employee.avatar==null}" src="/static/imgs/txsc.png" alt="头像" id="avatarimg"
                                 style="cursor: pointer;">
                            <img th:if="${employee.avatar!=null}"
                                 th:src="@{'/storage/images/' + ${employee.avatar}}+'_100x100'" alt="头像" id="avatarimg"
                                 style="cursor: pointer;">
                        </td>
                    </tr>
                    <tr style="height: 50px;">
                        <td>部门</td>
                        <td th:text="${employee.departmentName }"></td>
                        <td>是否在职</td>
                        <td th:text="${employee.status eq 1 ? '在职' : '离职' }"></td>
                    </tr>
                    <tr style="height: 50px;">
                        <td>是否全职</td>
                        <td th:text="${employee.fullTime ? '全职' : '兼职' }"></td>
                        <td>身份证号</td>
                        <td colspan="2" th:text="${employee.idNo}"></td>
                    </tr>

                    <tr th:if="${!#lists.isEmpty(employeeCertificateList)} ">
                        <td>证书</td>
                        <td colspan="4">
                            <img th:each="employeeCertificateList:${employeeCertificateList}"
                                 th:src="@{'/storage/images/' + ${employeeCertificateList.path}}+'_400x300'" alt="证书"
                                  style="max-width: 400px;">
                        </td>
                    </tr>
                </table>
                <div class="layui-form-item">
                    <div class="layui-input-block">

                        <a th:href="@{/employee/export/pdf(id=${employee.id})}" class="layui-btn layui-btn-warm "  >导出PDF</a>
                        <a class="layui-btn layui-btn-normal" href="javascript:void(0)"
                           onclick="javascript:history.back()">返回</a>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
</html>